﻿@model XSTDZ.ERP.Application.DataContracts.ProductDeliveryBillDto
@{
    ViewBag.Title = " - 编辑产品发货";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}
<div class="wp100" id="divForm">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
       <input type="hidden" value="@ViewBag.WareHourseId" id="WareHourseId" name="WareHourseId" />
        <td class="title"> @Html.LabelFor(model => model.DeliveryNo)<b>*</b></td>
        <td> @Html.TextBoxFor(model => model.DeliveryNo, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.DeliveryNo)
         <input type="hidden" value="@ViewBag.TempId" id="hidbillDetailId" name="hidbillDetailId"   />
          @Html.HiddenFor(model => model.Id)
           @Html.HiddenFor(model => model.BillState)
           @Html.HiddenFor(model => model.AffirmState)
        </td>
        <td class="title">@Html.LabelFor(model => model.StorehouseID)<b>*</b></td>
        <td>  @Html.TextBoxFor(model => model.StorehouseName, new { @class = "text disablebg", @readonly = "readonly" })
          @Html.HiddenFor(model => model.StorehouseID)
            @Html.ValidationMessageFor(model => model.StorehouseID)
         </td>
  </tr>
       
         <tr>
           <td class="title">@Html.LabelFor(model => model.DeliveryorID)<b>*</b></td>
        <td> 
        @Html.TextBoxFor(model => model.DeliveryorName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.DeliveryorID)
        @Html.ValidationMessageFor(model => model.DeliveryorID)
        </td>
        
       

         <td class="title"> @Html.LabelFor(model => model.DeliveryDate)<b>*</b></td>
        <td> @Html.TextBoxFor(model => model.DeliveryDate, new { @class = "text disablebg", @readonly = "readonly" })
         <input type="hidden" value="@Model.DeliveryDate" id="DeliveryDateVal" name="DeliveryDateVal" />
        @Html.ValidationMessageFor(model => model.DeliveryDate)
        </td>
  </tr> 
         <tr>
        <td class="title"> @Html.LabelFor(model => model.DeliveryID)<b>*</b></td>
        <td> @Html.TextBoxFor(model => model.DeliveryName, new { @class = "text disablebg", @readonly = "readonly" })
       
         @Html.HiddenFor(model => model.DeliveryID)
        @Html.ValidationMessageFor(model => model.DeliveryID)
        </td>

        <td class="title"> @Html.LabelFor(model => model.SenderID)<b>*</b></td>
        <td> @Html.TextBoxFor(model => model.SenderName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.SenderID)
        @Html.ValidationMessageFor(model => model.SenderID)
        </td>
  </tr> 

    <tr>
        <td class="title"> @Html.LabelFor(model => model.Remarks)</td>
        <td> @Html.TextBoxFor(model => model.Remarks, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.Remarks)
        </td>
        <td class="title"></td>
        <td>  
         </td>
  </tr> 

    
      @if (ViewBag.IsConfirm == true)
      { 
     <tr>
        <td  colspan="4">
              <p class="divBtn">
                <input type="hidden" value="" name="hidProductBillItems" id="hidProductBillItems" />
               <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="button" value="确认"  class="BtnSubmit" id="submitBtn" name="submitBtn" onclick="javascript:audioOperation();" />
            <input type="button" value="打回"  class="BtnSubmit" id="unSubmitBtn" name="unSubmitBtn" onclick="javascript:unAudioOperation();" />
        </p>
        </td>
    </tr>
      }
    <input id="HidOrgCode" name="HidOrgCode" type="hidden" value="@ViewBag.orgCode" />
        <input id="HidEmptyGuid" name="HidEmptyGuid" type="hidden" value="@Guid.Empty" />
        </table>
}
</div>
<div class="wp100">
<div id="ProductDeliveryItemsGrid" style="margin-top:20px" ></div>
</div>



@*<script type="text/javascript" src="@Url.Content("~/Scripts/ligerUI/js/plugins/ligerPopupEdit.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/ligerUI/js/plugins/ligerDateEditor.js")"></script>
@if (ViewBag.orgCode == XSTDZ.ERP.Infrastructure.SystemConfig.XinChangCode.ToString() || ViewBag.orgCode == XSTDZ.ERP.Infrastructure.SystemConfig.LaoChangCode.ToString())
{
<script type="text/javascript" src="@Url.Content("~/Content/js/ProductDelivery/FactoryAdd.js")"></script>
}
else
{ 
<script type="text/javascript" src="@Url.Content("~/Content/js/ProductDelivery/Detail.js")"></script>
}
<script type="text/javascript" src="@Url.Content("~/Content/js/SelectData.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>*@

<script type="text/javascript" src="@Url.Content("~/Content/js/ProductDelivery/Detail.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>